<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sjr" uri="/struts-jquery-richtext-tags"%>
<s:include value="/commun/header.jsp" />

<div id="body">
<h2>Poster un nouveau message</h2>

<s:if test="hasActionErrors()">
   <div class="errors">
      <s:actionerror/>
   </div>
</s:if>

<s:form>
<p>
<s:textfield label="Titre" name="topic.titre"/>
</p>
<p>
<sjr:tinymce
    name="post.texte"
    id="richtextTinymceAdvancedEditor"
    rows="10"
    cols="80"
    width="800"
    editorLocal="fr"
	editorTheme="advanced"
	editorSkin="o2k7"
    toolbarAlign="left"
    toolbarLocation="top"
    plugins="safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template"
    toolbarButtonsRow1="bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect"
    toolbarButtonsRow2="cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,cleanup,help,code,|,insertdate,inserttime|,forecolor,backcolor"
 	toolbarButtonsRow3="tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,|,ltr,rtl,|,fullscreen"
	toolbarButtonsRow4="styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote"

/>


</p>
<s:hidden name="topic.id"/>
<s:hidden name="post.id"/>
<s:hidden name="projet.id" value="%{#session.pid}"/>
<s:hidden name="topic.owner.id" value="%{#session.uid}"/>
<p>
<s:submit action="insertTopic" value="Enregistrer" />
<s:reset value="Annuler" />
</p>
</s:form>
</div>
<s:include value="/commun/footer.jsp"/>